Klasse ExportFilePresenter
java.lang.Object
com.inet.pdfc.presenter.BasePresenter
com.inet.pdfc.presenter.ExportPresenter
com.inet.pdfc.presenter.ExportFilePresenter
- Alle implementierten Schnittstellen:
NamedExtension, Cloneable
- Bekannte direkte Unterklassen:
DifferencesPDFPresenter, DifferencesPNGPresenter
Sub-Presenter for Differences-Exports creating a file result, such as PDF or PNG.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifikator und TypKlasseBeschreibungstatic interfaceInterface for PrintToX which have a Print-Range property.Von Klasse geerbte verschachtelte Klassen/Schnittstellen BasePresenter
BasePresenter.ERROR_SOURCE -
Feldübersicht
Von Klasse geerbte Felder ExportPresenter
PAINT_BOTH, PAINT_LEFT, PAINT_RIGHTVon Klasse geerbte Felder BasePresenter
LOGGER, MAX_FILENAME_LENGTH -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungprotected voidSet the print range to the Print-implementation.Sets a boolean flag indicating whether an export will be generated when there are no differences found in the compared PDFs.protected OutputStreamOpens an returns an output stream for the result of the currentBasePresenter.getModel().protected abstract StringGet the extension of the target filevoidsetModel(ResultModel newModel) Registers this presenter to a model.voidsetPrintRange(int from, int to) Set the range of pages to render into the export-document.
If both parameters are -1, all pages will be printed.Von Klasse geerbte Methoden ExportPresenter
createAndSetupPrintPainter, setBackgroundColor, setOverlapAlpha, setPaintOverlap, setPaintSidesVon Klasse geerbte Methoden BasePresenter
canInformUserOnErrors, createExportFilename, detachFromModel, executeImmediately, getDefaultExportName, getLastPresenterException, getModel, getParent, getPresenterExceptions, onClear, onComparisonDone, onDataUpdate, onError, onFilterChange, onFinish, onInit, onProgressUpdate, setParent, spawnVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden NamedExtension
getExtensionName
-
Konstruktordetails
-
ExportFilePresenter
public ExportFilePresenter()
-
-
Methodendetails
-
applyPrintRange
Set the print range to the Print-implementation.- Parameter:
printToX- the print implementation- Seit:
- i-net PDFC 3.0
-
setPrintRange
public void setPrintRange(int from, int to) Set the range of pages to render into the export-document.
If both parameters are -1, all pages will be printed. This is the default setting.- Parameter:
from- the first page to include, 0-based.to- the last page to include, must be greater or equal to from and smaller than the total number of pages available- Seit:
- i-net PDFC 3.0
-
configure
Sets a boolean flag indicating whether an export will be generated when there are no differences found in the compared PDFs.Default value is
differences found in the compared PDFs, if set tofalse.falsean export will always be generated even when there are no differences. -
getExportStream
Opens an returns an output stream for the result of the currentBasePresenter.getModel(). The caller of this method will close the stream itself!- Gibt zurück:
- the stream to write the current result to
- Löst aus:
IOException- thrown in case the stream could not be created- Seit:
- i-net PDFC 3.0
-
getExtension
Get the extension of the target file- Gibt zurück:
- the file extension like .pdf or .png
- Seit:
- i-net PDFC 4.3
-
setModel
Registers this presenter to a model. If it already was registered to a model, the old model will be detached first.- Setzt außer Kraft:
setModelin KlasseBasePresenter- Parameter:
newModel- the new
-